//
//  KeyNameClass.m
//  EducationAdminClient
//
//  Created by KWSD on 15/12/4.
//  Copyright © 2015年 周佳兴. All rights reserved.
//

#import "KeyNameClass.h"

@implementation KeyNameClass
+(NSString *)getKeyName:(NSString *)fieldRole andBaseString:baseString andTUseString:(NSString *)t{
    NSString *str = @"";
    NSInteger a = [fieldRole integerValue];
    if(a==21||a==6){
//        str = @"_dz";
        str=@"";
    }
    else if (a==0||a==30||a==18||a==23||a==16||a==20||a==22){       
         str = @"";
    }
    else if (a==2){
        str = @"_editor";
    }
    else if (a==19){
        str = @"_file_many";
    }
    else if (a==17){
      str = @"_dicMany";
    }
    NSString *lastStr = [NSString stringWithFormat:@"%@%@%@", t, baseString,str];
    return lastStr;
}
@end
